package com.canaan.business.domain.inOutStock;

import com.canaan.common.annotation.Excel;
import com.canaan.common.annotation.TableName;
import com.canaan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 拣货记录对象 wms_picking_record
 *
 * @author ruoyi
 * @date 2022-12-20
 */
@ApiModel(description = "拣货记录")
@TableName("wms_picking_record")
@Data
public class WmsPickingRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty("id")
    private Long id;

    /** 编号 */
    @ApiModelProperty("编号")
    @Excel(name = "编号")
    private String no;

    /** 单据明细编号 */
    @ApiModelProperty("单据明细编号")
    @Excel(name = "单据明细编号")
    private String orderDetailNo;

    /** 批次号 */
    @ApiModelProperty("批次号")
    @Excel(name = "批次号")
    private String batchNo;

    /** 物料编号 */
    @ApiModelProperty("物料编号")
    @Excel(name = "物料编号")
    private String productNo;

    /** 库位 */
    @ApiModelProperty("库位")
    @Excel(name = "库位")
    private String storehouseLocationNo;

    /** 拣货数量 */
    @ApiModelProperty("拣货数量")
    @Excel(name = "拣货数量")
    private Long pickingQty;

    /** 容器编号 */
    @ApiModelProperty("容器编号")
    @Excel(name = "容器编号")
    private String containerNo;

    /** 是否删除：1是 0否 */
    private String delFlag;

    /** 排序 */
    @ApiModelProperty("排序")
    @Excel(name = "排序")
    private Integer sort;

    /** 条码 */
    @ApiModelProperty("条码")
//    @Excel(name = "条码")
    private String barcode;

    /** pda端查询数据使用，与orderDetailNo一样 */
    @ApiModelProperty("pda端查询数据使用，与明细编号一样")
    private String taskNo;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("detailOrderNo", getOrderDetailNo())
            .append("batchNo", getBatchNo())
            .append("productNo", getProductNo())
            .append("storehouseLocationNo", getStorehouseLocationNo())
            .append("pickingQty", getPickingQty())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .append("sort", getSort())
            .toString();
    }


}
